﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;


public class btnTryAGame : MonoBehaviour {



	public Sprite btnActive; //sprite representing active state of button
	private SpriteRenderer spriteRenderer;
	private Sprite initialSprite; 






	void Start ()
	{
		initialSprite = this.GetComponent<SpriteRenderer>().sprite; //save object's sprite to an initial variable
		spriteRenderer = GetComponent<Renderer>() as SpriteRenderer;
	
	}




	void OnMouseDown()
	{
		spriteRenderer.sprite = btnActive;
	}

	//you can show ad offerWall here
	void OnMouseUp()
	{
		spriteRenderer.sprite = initialSprite;	
	}

	


	

	


}
